package com.chat.comment.core;

import java.util.HashMap;

/**
 * 操作消息提醒
 *
 * @author cxy
 */
public class AjaxResult extends HashMap<String, Object>
{
    public static final String RESULT_TAG = "result";
    public static final String MESSAGE_TAG = "msg";
    public static final String DATA_TAG = "data";
    ////////////////////////////////////////////////////////////////////////////////////////////////

    public AjaxResult() {}
    public AjaxResult(int result,String msg)
    {
        super.put(RESULT_TAG, result);
        super.put(MESSAGE_TAG, msg);
    }
    public AjaxResult(int result,String msg ,Object data)
    {
        super.put(RESULT_TAG, result);
        super.put(MESSAGE_TAG, msg);
        super.put(DATA_TAG, data);
    }
    @Override
    public AjaxResult put(String key, Object value)
    {
        super.put(key, value);
        return this;
    }
}
